package only.level5.railgun.ysartifactsimulation.suit;

import only.level5.railgun.ysartifactsimulation.Bean.CharacterScene;

/**
 * 炎之魔女
 */
public class CrimsonWitch implements ArtifactSuitEffect {
    int times;

    public CrimsonWitch() {
        this.times = 1;
    }

    public CrimsonWitch(int times) {
        this.times = Math.min(times, 3);
    }

    @Override
    public CharacterScene setEffect2Piece(CharacterScene character) {
        character.setIncrease(character.getIncrease() + 0.15);

        return character;
    }

    @Override
    public CharacterScene setEffect4Piece(CharacterScene character) {
        character.setIncrease(character.getIncrease() - 0.15);
        character.setIncrease(character.getIncrease() + 0.15 * 1.5 * times);
        character.setReactionIncrease(character.getReactionIncrease() + 0.15);
        return character;
    }
}